import Layout from '@/layout'

export default {
    path: '/operate',
    component: Layout,
    redirect: '/operate/business',
    name: 'Operate',
    meta: {
        title: '运营管理',
        icon: 'clipboard',
    },
    children: [
        {
            path: 'business',
            name: 'Business',
            component: () => import('@/views/operate/business'),
            meta: {
                title: '商家管理',
                icon: 'clipboard',
            },
            children: [
                {
                    path: 'list',
                    name: 'listIndex',
                    component: () => import('@/views/operate/business/list'),
                    meta: {
                        title: '商家列表',
                        icon: 'clipboard',
                    }
                },
                {
                    path: 'order',
                    name: 'OrderIndex',
                    component: () => import('@/views/operate/business/order'),
                    meta: {
                        title: '服务订单',
                        icon: 'clipboard',
                    }
                }
            ]
        },
        {
            path: 'goods',
            name: 'GoodsIndex',
            component: () => import('@/views/operate/goods'),
            meta: {
                title: '商品管理',
                icon: 'clipboard',
            }
        },
        {
            path: 'settleIn',
            name: 'SettleInIndex',
            component: () => import('@/views/operate/settleIn'),
            meta: {
                title: '商家入驻',
                icon: 'clipboard',
            }
        },
        {
            path: 'entrepreneurs',
            name: 'EntrepreneursIndex',
            component: () => import('@/views/operate/entrepreneurs/index.vue'),
            meta: {
                title: '创业列表',
                icon: 'clipboard',
            }
        },
        {
            path: '/operate/shopping/draw',
            name: 'Draw',
            component: () => import('@/views/operate/shopping/draw'),
            meta: {
                title: '抽奖管理',
                icon: 'clipboard',
            },
            children: [
                {
                    path: 'activity',
                    name: 'Activity',
                    component: () => import('@/views/operate/shopping/draw/activity'),
                    meta: {
                        title: '抽奖活动',
                        icon: 'clipboard',
                    }
                },
                {
                    path: 'record',
                    name: 'Record',
                    component: () => import('@/views/operate/shopping/draw/record'),
                    meta: {
                        title: '中奖记录',
                        icon: 'clipboard',
                    }
                }
            ]
        },
        {
            path: 'commodity',
            name: 'Commodity',
            component: () => import('@/views/operate/commodity'),
            meta: {
                title: '积分商品管理',
                icon: 'clipboard',
            }
        },
        {
            path: '/image',
            name: 'ImageIndex',
            component: () => import('@/views/operate/image'),
            meta: {
                title: '轮播图管理',
                icon: 'clipboard',
            }
        },
        {
            path: '/operate/exclusiveService',
            name: 'ExclusiveService',
            component: () => import('@/views/operate/exclusiveService/list'),
            meta: {
                title: '客服管理',
                icon: 'clipboard',
            }
        },
        {
            path: '/operate/agreement',
            name: 'Agreement',
            component: () => import('@/views/operate/agreement'),
            meta: {
                title: '协议管理',
                icon: 'clipboard',
            }
        },
        {
            path: '/operate/hanging-sale',
            name: 'Hanging-Sale',
            component: () => import('@/views/operate/hanging-sale'),
            meta: {
                title: '挂售专区',
                icon: 'clipboard',
            }
        },
    ]
}
